Skip to content

feat(pulumi): a preview observation for the graph, and nodes for a stack with no export (#5332) - #5372

Merged
lex00 merged 3 commits into
mainfrom
pulumi-preview-observation-5332
Nov 20, 2026
Merged

lex00 merged 3 commits into
mainfrom
pulumi-preview-observation-5332

Conversation

@lex00

@lex00 lex00 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Adds a preview depth to the pulumi lexicon's describeResources, the counterpart of the terraform plan observation.

CHANT_PULUMI_OBSERVE=preview (or depth: "preview") runs pulumi preview --json --show-sames, or plunge preview for a member on plunge, and reads the steps with the change-set adapter's parser (pulumiSteps and pulumiStepsAction, plus a new pulumiStepStates export of the existing state pairing). Nodes carry the attribute names the terraform plan depth uses: planAction, planActions, planActionReason, planReplacePaths, planAfterUnknown and planChanges. A resource the graph does not hold becomes a node with status planned, which is every resource of a stack with no export. A declared node with no step is not-reached.

Everything the preview adds to a node goes through the filter of #5363 (mayCarryKey in reference-props.ts, and referenceProps for the inputs). Secrets and credential-like keys stay off the node. So does the data of a Kubernetes Secret or ConfigMap, and any string too long to be a name. A change under such a key is not listed.

rootReads["pulumi.members.<member>"] says depth: "preview". When the preview fails it also carries fellBackTo (state when plunge's records answered, declared otherwise) and a reason: no-credentials, needs-install, no-stack, no-binary or preview-failed. The member page lists each reason, and cli/graph.mdx names the new key.

The floor is PULUMI_PREVIEW_OBSERVATION_FLOOR in lexicons/pulumi/src/chant-floors.ts, with the floor table regenerated.

Tests run a fake engine binary (a node script behind engineRunnerAt). They cover stacks with and without an export, the filter and each reason. Two more check plunge's fallback and the depth rules.

pulumiDisruptionQueries (#5364) is not on main yet, so the preview parsing reused here is the change-set adapter's own.

Closes #5332

@lex00
lex00 enabled auto-merge November 20, 2026 04:37
@lex00
lex00 added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit cf62d6a Nov 20, 2026
10 checks passed
@lex00
lex00 deleted the pulumi-preview-observation-5332 branch November 20, 2026 04:53
@lex00 lex00 mentioned this pull request Nov 20, 2026
78 of 84 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pulumi lexicon: a preview observation for the graph, and nodes for a stack with no export

1 participant